package com.pactera.mavenweb.service;

import java.util.List;

import com.pactera.mavenweb.entity.UserRole;

/**
 * UserRoleService
 * @author SteveXIE
 *
 */
public interface UserRoleService {
	/**
	 * 批量保存
	 * @param userRole
	 * @return
	 */
	int saveUserRoles(List<UserRole> userRoles);
	
	public UserRole getUserRole(String id);
	
	public List<UserRole> getAllUserRole();
	
	public List<UserRole> getRolesFromUserId(int id);
	
	public void addUserRole(UserRole userRole);
	
	public boolean delUserRole(int userId);
	
	public void updateUserRole(UserRole userRole);
}